# class CapStr(object):
#     pass
#
#
# a = CapStr("sdfsfsdgg")
# print(a)

# class CapStr01(str):
#     pass
#
# a = CapStr01("sdfsfsdgg")
# print(a)

class CapStr02(str):
    def __new__(cls, string):
        string = string.upper()
        return str.__new__(cls, string)

a = CapStr02("i Love lsdfdsf")
print(a)